package com.device.operating.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="fieldres")
public class Fieldres implements Serializable{

	@Id
	private String fieldId;
	private String fieldname;//字段名
	private String fieldcode;//字段英文名
	private boolean ifsec;//是否是默认查询条件
	private boolean ifshow;//是否是默认显示字段
	private String sectype;//选择字段类型（日期，单选、复选，或者字符串，如果是单选或者复选，需要关联到数据字典）
	private String fieldbelong;//字段所属资源
	private boolean ifavail;//是否是可显示自断金
	private boolean ifchange;//是否是可更改的查询条件
	private int fieldlength;
	private int fieldnum;//字段顺序
	@Transient
	private String secvalue;
	
	
	public int getFieldlength() {
		return fieldlength;
	}
	public void setFieldlength(int fieldlength) {
		this.fieldlength = fieldlength;
	}
	public String getSecvalue() {
		return secvalue;
	}
	public void setSecvalue(String secvalue) {
		this.secvalue = secvalue;
	}
	public int getFieldnum() {
		return fieldnum;
	}
	public void setFieldnum(int fieldnum) {
		this.fieldnum = fieldnum;
	}
	public String getFieldId() {
		return fieldId;
	}
	public void setFieldId(String fieldId) {
		this.fieldId = fieldId;
	}
	public String getFieldname() {
		return fieldname;
	}
	public boolean isIfavail() {
		return ifavail;
	}
	public void setIfavail(boolean ifavail) {
		this.ifavail = ifavail;
	}
	public boolean isIfchange() {
		return ifchange;
	}
	public void setIfchange(boolean ifchange) {
		this.ifchange = ifchange;
	}
	public void setFieldname(String fieldname) {
		this.fieldname = fieldname;
	}
	public String getFieldcode() {
		return fieldcode;
	}
	public void setFieldcode(String fieldcode) {
		this.fieldcode = fieldcode;
	}
	public String getSectype() {
		return sectype;
	}
	public void setSectype(String sectype) {
		this.sectype = sectype;
	}
	public String getFieldbelong() {
		return fieldbelong;
	}
	public void setFieldbelong(String fieldbelong) {
		this.fieldbelong = fieldbelong;
	}
	public boolean isIfsec() {
		return ifsec;
	}
	public void setIfsec(boolean ifsec) {
		this.ifsec = ifsec;
	}
	public boolean isIfshow() {
		return ifshow;
	}
	public void setIfshow(boolean ifshow) {
		this.ifshow = ifshow;
	}
	
	
	
}
